-
-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: redirect logger to stderr #208
fix: redirect logger to stderr #208
Conversation
800ed18
to
b42d558
Compare
This makes error logs show up in VSCode's error window without interfering with communication over stdout.
b42d558
to
90e80f7
Compare
@@ -2,4 +2,6 @@ import Config | |||
|
|||
config :next_ls, :indexing_timeout, 100 | |||
|
|||
config :logger, :default_handler, config: [type: :standard_error] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you point me to the docs on this config option? I can't seem to find it in the OTP docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To start, skim down to the :default_handler
configuration at https://hexdocs.pm/logger/Logger.html#module-boot-configuration. Then go to https://www.erlang.org/doc/man/logger_std_h.html for the options. :type
is the first one.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, thanks!
This makes error logs show up in VSCode's error window without
interfering with communication over stdout.